<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>群聚网</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="generator" content="" />
<meta name="copyright" content="群聚网" />
<meta name="author" content="yilian, www.yilian.cc" />
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<link href="css/global.css" rel="stylesheet" type="text/css" />
<script src="js/taobao.js"></script>
<script src="js/jquery-1.4a2.min.js" type="text/javascript"></script>
<script src="js/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="js/jquery.KinSlideshow-1.2.1.min.js" type="text/javascript"></script>
<script type="text/javascript">

//打开页面随机选择 切换方式（方向）,怕增大KinSlideshow.js文件 就没把随机切换写到里面。
//使用时如有需要随机自己写在前面是一样的。而且还可以只固定随机切换哪几种。

var moveStyle
var rand =parseInt(Math.random()*4)
switch(rand){
	case 0:	moveStyle="left" ;break;
	case 1:	moveStyle="right" ;break;
	case 2:	moveStyle="down" ;break;
	case 3:	moveStyle="up" ;break;
}
$(function(){
	$("#KinSlideshow1").KinSlideshow({moveStyle:moveStyle});
	
})

function login(){
	var username = $("#userName").val();
	var password = $("#password").val();
	$.post("/login.do", { name: username, pwd: password },
			function(text){
				if(text==1){
						window.location.href="/login.do?method=loginMain";
					}
				else{
						alert(text);
					}
			}
		);
	}
</script>
</head>

<body>
<%@ include file="/hader.jsp"%> 
<div class="wrapper">
	<div class="cb"></div>
	<div class="registration">
		<div class="left fl">
			<h2>欢迎登录群聚网</h2>
			<div style="padding-top:50px; padding-bottom:50px">			
			<form action="" method="post">
				<table cellpadding="0" cellspacing="0" width="100%" border="0">
					<tr>
						<td width="23%" align="right" valign="top">用户名/邮箱：</td>
						<td width="77%" align="left" valign="top"><input id="userName" name="userName" type="text" /></td>
					</tr>
					<tr>
						<td align="right" valign="top">密码：</td>
						<td align="left" valign="top"><input id="password" name="password" type="password" /></td>
					</tr>
					<tr>
						<td align="right" valign="top">&nbsp;</td>
						<td align="left" valign="top"><input name="" type="checkbox" value="" />下次自动登录<br /><br />
						<input type="button" value="登录" class="btn03" onclick="login();"/>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">忘记密码</a></td>
						
					</tr>
					<tr>
						<td align="left" valign="top" colspan="2"><div style="padding-left:50px; line-height:30px">使用合作网站账号登录群聚网<br />
						<a href="#" title="QQ用户登录" id="lo_qq" class="i_qq1">QQ</a></div>

						</td>
					</tr>
				</table>
				</form>
			</div>
		</div>
		<div class="right1 fr"><span><strong>还没有群聚网账号？</strong></span><br />现在就去注册成为群聚网用户，立刻享受<br />便宜又放心的团购乐趣。<br /><a href="/userRegister.do?method=viewRegister">注册新用户</a></div>
		<div class="cb"></div>
	</div>
	<div class="cb"></div>
</div>
<%@ include file="/footer.html"%> 
</body>
</html>
